# -*- coding: utf-8 -*-
from socketIO_client import SocketIO

from .ws_namespace import WSNamespace


def get_ws_client(ws_cfg):
    return SocketIO(
        ws_cfg['host'],
        ws_cfg['port'],
        resource=ws_cfg['resource'],
        Namespace=WSNamespace
    )